<?php
class Desktop extends Controller {
	function index() {
		$this->load->model('widgets', 'tmp');
		$widgets = $this->tmp->get('arthur');
		
		$data['title'] = "Arthurs pagina";
		$data['paths']['libs'] = "/~anieuwla/inp/PortalSite/mockup/";
		$data['paths']['css'] = "/~anieuwla/inp/PortalSite/mockup/";
		$this->load->view('header.php', $data);
		foreach ($widgets as $w) {
			$this->load->view('widgets/'.$w['name'], $w);
		}
		$this->load->view('footer.php');
	}
}
?>
